let txtecho = document.getElementById('txtecho');
let btnecho = document.getElementById('btnecho');
let divecho = document.getElementById('divecho');

const BASE_URL = 'https://api.huhuiyu.top';


btnecho.addEventListener('click', () => {
  let promise = axios({
    url: BASE_URL + '/test/echo?echo=' + txtecho.value,
    data:'',
    menthod:'get',
  });

  promise.then((resp)=>{
    // divecho.innerHTM = JSON.stringfy(resp.data);
    divecho.innerHTML =resp.data,data;
  }).catch((err)=>{
    console.error('应用程序异常:',err);
  } );
});

let btnFootball = document.getElementById('btnFootball');
let divFootball = document.getElementById('divFootball');

btnFootball.addEventListener('click', () =>{
  // json格式的参数
  let params = {
    orderBy:1,
    pageNumber:1,
    pageSize:5,
  };
  // 传唤参数为查询字符串格式
  let data = Qs.stringify(params);
  console.log('传递的数据：', data);
  // 发起请求
  let promise = axios({
    
  })
});
// #endregion